import service from "../utils/request";

export const getMenuList = (params: any) => {
    return service.get("/nttboot/sys/permission/list1", {params});
  };

  export const checkUrl = (data: any) => {
    return service.get("/nttboot/sys/permission/checkPermDuplication", {params: data});
  };

  export const addMenu = (data: any) => {
    return service.post("/nttboot/sys/permission/add", data);
  };

  export const editMenu = (data: any) => {
    return service.post("/nttboot/sys/permission/edit", data);
  };

  export const deleteMenu = (data: any) => {
    return service.delete(`/nttboot/sys/permission/delete`, {params: data});
  };